package interfaceCustomer;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class RenewSub extends JPanel implements ActionListener {
	private JButton btnBackToMenu;
	private JButton btnNext;
	private JLabel lblCusId;
	private JLabel lblCusName;
	private JTextField txtCusId;
	private JTextField txtCusName;
	private CustomerFrame backtomenu; 
	
	
	public RenewSub(CustomerFrame _cf)
	{
		backtomenu =_cf;
		this.setLayout(null);
	//	this.getContentPane().setBackground(new Color(0,0,0));
			
		btnBackToMenu = new JButton("Back To Menu");
		btnBackToMenu.setBounds(42, 215, 115, 25);
		this.add(btnBackToMenu);
		btnBackToMenu.addActionListener(this);
		
		btnNext = new JButton("Next");
		btnNext.setBounds(280, 215, 115, 25);
		this.add(btnNext);
		btnNext.addActionListener(this);
	
		lblCusId = new JLabel("Customer ID:");
		lblCusId.setBounds(10, 10, 75, 25);
		this.add(lblCusId);
		
		lblCusName = new JLabel("Customer Name:");
		lblCusName.setBounds(215, 10, 97, 25);
		this.add(lblCusName);
		
///////////////////////////////////////////////////////////////////
		JLabel lblTemp = new JLabel("Here, will be radio buttons (multiple choice) as the number of customer's cars.");
		lblTemp.setBounds(10, 100, 500, 25);
		this.add(lblTemp);
//////////////////////////////////////////////////////////////////////		
		
		txtCusId = new JTextField();
		txtCusId.setBounds(90, 12, 120, 20);
		this.add(txtCusId);
		txtCusId.setEditable(false);
		
		txtCusName = new JTextField();
		txtCusName.setBounds(317, 12, 120, 20);
		this.add(txtCusName);
		txtCusName.setEditable(false);
	}


	@Override
	public void actionPerformed(ActionEvent e) {
		if(e.getSource() == btnBackToMenu) {
			backtomenu.ChangePanel(0);
		}
	/*	if(e.getSource() == btnNext) {
			backtomenu.ChangePanel(3.1);
		} */
	}
	

}
